package com.pet.system.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 系统-用户表
 *
 * @author Centaurea
 */
@ApiModel(value = "com-pet-system-domain-entity-SysUser")
@Data
@NoArgsConstructor
@TableName(value = "sys_user")
public class SysUser implements Serializable {
  private static final long serialVersionUID = 7451346969703244304L;
  public static final String COL_ID = "id";
  public static final String COL_NICKNAME = "nickname";
  public static final String COL_USERNAME = "username";
  public static final String COL_PASSWORD = "password";
  public static final String COL_SALT = "salt";
  public static final String COL_EMAIL = "email";
  public static final String COL_MOBILE = "mobile";
  public static final String COL_AVATAR = "avatar";
  public static final String COL_STATUS = "status";

  /** 角色主键ID */
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "角色主键ID")
  private Integer id;

  /** 昵称、真实姓名 */
  @TableField(value = "nickname")
  @ApiModelProperty(value = "昵称、真实姓名")
  private String nickname;

  /** 用户名 */
  @TableField(value = "username")
  @ApiModelProperty(value = "用户名")
  private String username;

  /** 密码 */
  @TableField(value = "`password`")
  @ApiModelProperty(value = "密码")
  private String password;

  /** 盐值 */
  @TableField(value = "salt")
  @ApiModelProperty(value = "盐值")
  private String salt;

  /** 邮箱地址 */
  @TableField(value = "email")
  @ApiModelProperty(value = "邮箱地址")
  private String email;

  /** 手机号 */
  @TableField(value = "mobile")
  @ApiModelProperty(value = "手机号")
  private String mobile;

  /** 头像 */
  @TableField(value = "avatar")
  @ApiModelProperty(value = "头像")
  private String avatar;

  /** 用户状态 1：可用，0：禁用 */
  @TableField(value = "`status`")
  @ApiModelProperty(value = "用户状态  1：可用，0：禁用")
  private Integer status;
}
